<div class="col-sm-12 mt20">
<div class="panel panel-default">
    <div class="panel-body">
        <div class="form-group form-inline">
            <div class="col-sm-10">
              
            </div>
            <div class="col-sm-2 text-right">
                <button type="button" class="btn btn-info  btn-block" ng-click="create()">创建</button>
            </div>
        </div>
    </div>
</div><!-- searchArea -->
<div class="panel panel-default">
  <table class="table table-condensed table-hover table-bordered">
    <thead>
      <tr>
        <th class="col-md-2 text-center">销售品类别编号</th>
        <th class="col-md-2 text-center">销售品类别名称</th>
        <th class="col-md-1 text-center">功能编号</th>
        <th class="col-md-2 text-center">功能名称</th> 
        <th class="col-md-2 text-center">状态</th>         
        <!-- <th class="col-md-1 text-center">需要子表</th>  -->
        <th class="col-md-2 text-center">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="obj in objs">
        <td class="text-center">{{obj.sale_category_code}}</td>
        <td class="text-center">{{obj.sale_category_name}}</td>
        <td class="text-center">{{obj.sub_table_code}}</td>
        <td class="text-center">{{obj.sub_table_name}}</td>
        <td class="text-center">
            <p class="" ng-show="obj.sub_table_used_type == '1'">不需子表</p>
            <p class="" ng-show="obj.sub_table_used_type == '0'">需要子表</p>
        </td>
        <!-- <td class="">
            <label class="i-switch bg-success" ng-init="obj.showSpline" style="margin-left:25%">
                <input type="checkbox" ng-model="obj.showSpline" ng-change="change(obj.showSpline, obj.sale_category_code, obj.sub_table_code, obj.sub_table_used_type)">
                <i></i>
            </label>
        </td>  -->
        <td class="text-center">
          
          <a class="btn btn-success btn-xs" ng-click="changeChildren(obj)">更改</a>
          <a ng-click="del(obj)" class="btn btn-danger btn-xs">删除</a>

        </td>
      </tr>
    </tbody>
  </table>
</div>

  

</div>